package com.zhuhjay.service.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-02-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_menu")
@ApiModel(value = "SystemMenu对象", description = "系统菜单")
public class SystemMenu {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("菜单名")
    private String menuName;

    @ApiModelProperty("菜单标识")
    private String menuKey;

    @ApiModelProperty("父菜单id, -1则为顶级菜单")
    private Integer parentId;

    @ApiModelProperty("排序")
    private Integer sort;
}
